-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bc-5596-poc-update-feathersjs-mongoose #4550
Bc-5596-poc-update-feathersjs-mongoose #4550
Conversation
`please set the environment variable BODYPARSER_JSON_LIMIT to min. '${Math.ceil( | ||
1.36 * (MAXIMUM_ALLOWABLE_TOTAL_ATTACHMENTS_SIZE_BYTE / 1024 / 1024) | ||
)}mb' for helpdesk to work correctly! (Currently: ${BODYPARSER_JSON_LIMIT})` | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formating affected, should revert this part...
@@ -38,7 +38,7 @@ class MockSyncerWithData extends Syncer { | |||
} | |||
} | |||
|
|||
describe('datasourceRuns service', () => { | |||
describe.only('datasourceRuns service', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove only
@@ -19,7 +19,7 @@ const fixtures = require('../fixtures'); | |||
const { expect } = chai; | |||
chai.use(chaiAsPromised); | |||
|
|||
describe('filePermissionHelper', () => { | |||
describe.only('filePermissionHelper', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove only
test/services/helpdesk/index.test.js
Outdated
@@ -5,7 +5,7 @@ const sinon = require('sinon'); | |||
const appPromise = require('../../../src/app'); | |||
const { Configuration } = require('@hpi-schul-cloud/commons'); | |||
|
|||
describe('helpdesk service', function test() { | |||
describe.only('helpdesk service', function test() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove only
@@ -17,7 +17,7 @@ chai.use(chaiAsPromised); | |||
chai.use(chaiHttp); | |||
const { expect } = chai; | |||
|
|||
describe('LdapConfigService', () => { | |||
describe.only('LdapConfigService', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove only
@@ -88,11 +88,8 @@ function connect() { | |||
|
|||
const mongooseOptions = { | |||
autoIndex: NODE_ENV !== ENVIRONMENTS.PRODUCTION, | |||
poolSize: MONGOOSE_CONNECTION_POOL_SIZE, | |||
minPoolSize: MONGOOSE_CONNECTION_POOL_SIZE, //https://mongoosejs.com/docs/migrating_to_6.html#mongodb-driver-40 ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mongoose 5.x poolSize option is equivalent to the Mongoose 6 maxPoolSize option. The default value of maxPoolSize has been increased to 100.
I guess we should add a maxPoolSize too. Default seems to be 100
In dof app we have
MONGOOSE_CONNECTION_POOL_SIZE:
value: "50"
so, we had a (max) 50 and now is min 50 to 100. Will that not cause any issues?
…athersjs-mongoos
TODO Check this https://mongoosejs.com/docs/6.x/docs/api/query.html#query_Query-updateMany the given example references nModified, so why must we change it to modifiedCount?
4373645
to
b5c18df
Compare
Description
Links to Tickets or other pull requests
BC-5829 (BC-5596)
BC-5828 - feathers update #4568
BC-5596 - poc -update feathersjs to version 5 schulcloud-client#3346
Changes
Datasecurity
Deployment
New Repos, NPM pakages or vendor scripts
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.